/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdSectionResult;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 型材计算结果业务对象 isfd_section_result
 *
 * @author hxloongs
 * @date 2024-07-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdSectionResult.class, reverseConvertGenerate = false)
public class IsfdSectionResultBo extends BaseEntity {

    /**
     * 型材计算结果id
     */
    @NotNull(message = "型材计算结果id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 型材库id
     */
    @NotNull(message = "型材库id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long secId;

    /**
     * 型材算法id
     */
    @NotNull(message = "型材算法id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long secAlgId;

    /**
     * E
     */
    @NotNull(message = "E不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double E;

    /**
     * G
     */
    @NotNull(message = "G不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double G;

    /**
     * Xc
     */
    @NotNull(message = "Xc不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double Xc;

    /**
     * A
     */
    @NotNull(message = "A不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double A;

    /**
     * I1
     */
    @NotNull(message = "I1不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double I1;

    /**
     * I2
     */
    @NotNull(message = "I2不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double I2;

}
